package com.hejie.commentservice.config;

public class Constants {
    // 缓存键前缀
    public static final String CACHE_KEY_COMMENT = "comment:info:";
    public static final String CACHE_KEY_VIDEO_COUNT = "comment:count:video:";
    public static final long CACHE_TTL = 86400L; // 默认缓存时间，单位秒

    // Kafka主题名称
    public static final String TOPIC_COMMENT_ADDED = "comment-added-topic";
    public static final String TOPIC_COMMENT_UPDATED = "comment-updated-topic";
    public static final String TOPIC_COMMENT_DELETED = "comment-deleted-topic";
    public static final String TOPIC_VIDEO_DELETED = "video-deleted-topic";

    // 评论状态
    public static final int COMMENT_STATUS_NORMAL = 1;
    public static final int COMMENT_STATUS_DELETED = 0;
    public static final int COMMENT_STATUS_PENDING = 2;
}